package com.jblv.frame.common.utils.bean;

/**
 * @author happyonion.yangtao
 * @version 1.0
 * @title FieldValueChangeRecord
 * @projectName jblv-frame
 * @packageName com.jblv.frame.common.utils.bean
 * @description FieldValueChangeRecord
 * @date Create at 2020/6/4 0:20
 * @since jdk1.8
 */
public class FieldValueChangeRecord {
    /**
     * 字段名
     */
    private final String fieldName;

    /**
     * 旧值
     */
    private final Object oldValue;

    /**
     * 新值
     */
    private final Object newValue;

    public FieldValueChangeRecord(String fieldName, Object oldValue, Object newValue) {
        this.fieldName = fieldName;
        this.oldValue = oldValue;
        this.newValue = newValue;
    }

    public String getFieldName() {
        return fieldName;
    }

    public Object getOldValue() {
        return oldValue;
    }

    public Object getNewValue() {
        return newValue;
    }
}
